import axios from "./index"
export function enter(loginname:string,password:string){
    return axios.post("/user/login",{loginname,password})
}
export function checkPhone(tel:string){
    return axios.post("/user/docheckphone",{tel})
}
// 发送验证码
export function dosendmsgcode(tel:string){
    return axios.post("/user/dosendmsgcode",{tel})
}
// 验证验证码
export function docheckcode(tel:string,telcode:string){
    return axios.post("/user/docheckcode",{tel,telcode})
}
export function regist(tel:string,password:string){
    return axios.post("/user/dofinishregister",{tel,password})
}